FROM ubuntu:16.04

ADD rc.ipvs /etc/
ADD rc.rs /etc/

RUN apt-get update &&\
    apt-get install -y gcc make vim ipvsadm iproute2 keepalived &&\
    bash /etc/rc.ipvs &&\
    bash /etc/rc.rs

EXPOSE 89